<%--<%@ page import="java.util.ArrayList" %>--%>
<%--<%@ page import="edu.neu.javaweb.bean.User" %>--%>
<%--
  Created by IntelliJ IDEA.
  User: yukunpeng
  Date: 2021/5/17
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>关于我</title>
</head>
<body>
<h1 class="at_center">关于我</h1>
<hr/>
<br/>
<div class="at_center">
    <% Object isLogin = request.getSession().getAttribute("isLogin");%>
    <% if (isLogin != null && (Boolean) isLogin) { %>
    已登录
    <br/>
    用户名：<%=request.getSession().getAttribute("username")%>
    <br/>
    <button type="button" onclick="window.location.href = 'logout'">退出登录</button>
    <% } else { %>
    未登录，即将跳转至登录界面
    <script>
        setTimeout(function () {
            window.location.href = 'login.html'
        }, 3000)
    </script>
    <%
        }
    %>
</div>
</body>
</html>
<style>
    .at_center {
        text-align: center;
        text-align: -moz-center;
        text-align: -webkit-center;
    }
</style>